#ifndef __HTTP_RESQUEST_H_
#define __HTTP_RESQUEST_H_

#include <iostream>
#include <string>
#include <map>
#include <sstream>
#include <algorithm>
#include <sstream>
using std::cout;
using std::endl;
using std::map;
using std::string;
using std::istringstream;
using std::ostringstream;

//Http请求
class HttpRequest
{
public:
    HttpRequest(){}
    HttpRequest(const string & msg);

    string gethttprequest();
    string deco(const string &str);//URL解码
public:
    string _method;
    string _path;
    string _version;
    map<string, string> _headers;
    string _body;
};


#endif